//
//  FindClassifyCollectionViewCell.m
//  Everest
//
//  Created by 刘宇文 on 14-12-19.
//  Copyright (c) 2014年 ThreeL. All rights reserved.
//

#import "FindClassifyCollectionViewCell.h"

@implementation FindClassifyCollectionViewCell

- (void)dealloc
{
    [_myImageView release];
    [_myLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        
//        self.myBackLabel = [[UILabel alloc] init];
//        self.myBackLabel.backgroundColor = [UIColor whiteColor];
//        [self.contentView addSubview:self.myBackLabel];
//        [_myBackLabel release];
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.myImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
        self.myLabel = [[UILabel alloc] init];
        self.myLabel.textAlignment = NSTextAlignmentCenter;
//        self.myLabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:self.myLabel];
        [_myLabel release];
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
//    self.myBackLabel.frame = CGRectMake(0, 0, self.contentView.bounds.size.width, self.contentView.bounds.size.height);
    
    self.myImageView.frame = CGRectMake(5, 5, self.contentView.bounds.size.width - 10, 65);
    
    self.myLabel.frame = CGRectMake(0, 66, self.contentView.bounds.size.width, 27.5);
}


@end
